package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface CommentService {
    //新增
    int save(Comment comment);

    //删除操作
    int delete(Long userId, ObjectId publishId,Integer commentType);

    //分页查询评论信息
    PageBeanVo findByPage(ObjectId publishId,Integer pageNum,Integer pageSize);

    //分页查询
    PageBeanVo findByPage(Long publishUserId,Integer commentType,Integer pageNum,Integer pageSize);
}
